<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>员工列表页面</title>
</head>
<body>

<div align="center">
    <h2>员工列表</h2>
    <table align="center" width="550px" height="350px" border="1">
        <tr>
            <th>ID</th>
            <th>LastName</th>
            <th>Email</th>
            <th>Salary</th>
            <th>Opr</th>
        </tr>
        <tr th:each="emp : ${empList}">
            <td th:text="${emp.id}"></td>
            <td th:text="${emp.lastName}"></td>
            <td th:text="${emp.email}"></td>
            <td th:text="${emp.salary}"></td>
            <td>
                <a th:href="@{/}">修改员工</a>
                <a th:href="@{/}">删除员工</a>
            </td>
        </tr>
    </table>
    <a th:href="@{/}">添加员工信息</a><br>
    <div th:utext="${pageResult}"></div>
</div>

</body>
</html>